package api

import (
	"github.com/gin-gonic/gin"
	"inspection-helper/backend/internal/handlers"
)

func SetupRouter() *gin.Engine {
	r := gin.Default()

	// 定义API路由
	r.GET("/health", handlers.HealthCheck)
	r.POST("/users", handlers.CreateUser)
	r.GET("/users/:id", handlers.GetUser)

	return r
}